package com.tnsw.noxnox.dialog;

import android.app.AlertDialog;
import android.app.Dialog;
import android.content.Context;
import android.content.DialogInterface;
import android.os.Bundle;
import android.support.v4.app.DialogFragment;
import android.util.Log;

public class MyFragmentDialog1 extends DialogFragment {
	
	private Context context;
	private String tag = "MyFragmentDialog1";
	
	public MyFragmentDialog1() {
		
	}
	
	public MyFragmentDialog1(Context context) {
		this.context = context;
	}
	
	@Override
	public void onDismiss(DialogInterface dialog) {
		Log.d(tag, "onDismiss()");
	}
	
	@Override
	public Dialog onCreateDialog(Bundle savedInstanceState) {
		AlertDialog.Builder dialog = new AlertDialog.Builder(context);
		
		dialog.setTitle("Really?");
		dialog.setMessage("Are you sure?");
		dialog.setPositiveButton("OK", null);
		
		return(dialog.create());
	}
}
